how to scan and print structure in c